package com.mrd.util.result;

/**
 * 批量保存操作结果
 * @author luob
 */
public class SupAddBatchResult {
	/**
	 * 保存成功的数量
	 */
	private int	successCount;
	/**
	 * 保存失败的数量
	 */
	private int	failCount;
	/**
	 * 反馈信息
	 */
	private String	message;

	public int getSuccessCount() {
		return successCount;
	}

	public void setSuccessCount(int successCount) {
		this.successCount = successCount;
	}

	public int getFailCount() {
		return failCount;
	}

	public void setFailCount(int failCount) {
		this.failCount = failCount;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "操作结果：\n" + "成功：" + successCount + "条\n失败：" + failCount + "条\n"
		        + (message == null ? "" : message);
	}
}
